/**
 * @author 80002001 
 *
 */
package hw80002001.lesson1.第一题;

public class HomeWork4{

public static void main(String[] args) {  
 ThreadDemo t=new ThreadDemo();
 t.start();
} 
}

class ThreadDemo extends Thread{
public void run() {
 for (int i = 1; i <= 100; i += 1) {
  try {
   Thread.sleep(100);
  } catch (InterruptedException e) {
   e.printStackTrace();
  }
  System.out.println(i);
 }
} 
}
